package AlarmIRPConstDefs;
/**
 * Generated from IDL enum "AcknowledgeFailureCategories".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AcknowledgeFailureCategories
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _UNKNOWN_ALARM_ID = 0;
	public static final AcknowledgeFailureCategories UNKNOWN_ALARM_ID = new AcknowledgeFailureCategories(_UNKNOWN_ALARM_ID);
	public static final int _WRONG_PERCEIVED_SEVERITY = 1;
	public static final AcknowledgeFailureCategories WRONG_PERCEIVED_SEVERITY = new AcknowledgeFailureCategories(_WRONG_PERCEIVED_SEVERITY);
	public static final int _ACKNOWLEDGMENT_FAILED = 2;
	public static final AcknowledgeFailureCategories ACKNOWLEDGMENT_FAILED = new AcknowledgeFailureCategories(_ACKNOWLEDGMENT_FAILED);
	public int value()
	{
		return value;
	}
	public static AcknowledgeFailureCategories from_int(int value)
	{
		switch (value) {
			case _UNKNOWN_ALARM_ID: return UNKNOWN_ALARM_ID;
			case _WRONG_PERCEIVED_SEVERITY: return WRONG_PERCEIVED_SEVERITY;
			case _ACKNOWLEDGMENT_FAILED: return ACKNOWLEDGMENT_FAILED;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _UNKNOWN_ALARM_ID: return "UNKNOWN_ALARM_ID";
			case _WRONG_PERCEIVED_SEVERITY: return "WRONG_PERCEIVED_SEVERITY";
			case _ACKNOWLEDGMENT_FAILED: return "ACKNOWLEDGMENT_FAILED";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AcknowledgeFailureCategories(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
